package com.sport.common.controller.common;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: Lai
 * @Email: aYong1324@163.com
 * @Create: 2024/5/22 23:35
 * @Descript: 页面跳转入口
 */
@Controller
public class PageJumpController {

    @RequestMapping("/")
    public String toWelcome() {
        return "welcome";
    }

    @RequestMapping("/education")
    public String toEducation() {
        return "education";
    }

    @RequestMapping("/honor")
    public String toHonor() {
        return "honor";
    }

    @RequestMapping("/skill")
    public String toSkill() {
        return "skill";
    }

    @RequestMapping("/work")
    public String toWork() {
        return "work";
    }

    @RequestMapping("/project")
    public String toProject() {
        return "project";
    }

    @RequestMapping("/opensource")
    public String toOpensource() {
        return "opensource";
    }

    @RequestMapping("/moment")
    public String toMoment() {
        return "moment";
    }

    @RequestMapping("/test")
    public String toTest() {
        return "test";
    }

    @RequestMapping("/example")
    public String toExample(Model model) {
        model.addAttribute("content", "example :: content");
        model.addAttribute("pageTitle", "教育经历");
        model.addAttribute("pageCss", "/blog/css/education.css");
        return "layout";
    }

    @RequestMapping("/head")
    public String toHead() {
        return "head";
    }

    @RequestMapping("/footer")
    public String toFooter() {
        return "footer";
    }

}
